<#macro html title description page_tab="" sidebar_user_info="" sidebar_topic_user="" sidebar_checkin="" sidebar_create="" sidebar_scoretop="" sidebar_md_help="" sidebar_create_info="" sidebar_friendlylinks="" sidebar_about="">
<!DOCTYPE HTML>
<html lang="zh-cn">
<head>
    <title>${title!"JFinal社区"}</title>
    <meta name="description" content="${description!} - JFinal社区">
    <meta name="keywords" content="java,社区,jfinal,jfinal社区,JFinal社区,java社区,java论坛,论坛,bootstrap,flatui" />
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=0.1">

    <link href="${baseUrl!}/static/bootstrap/css/bootstrap.min.css?v=20150604" rel="stylesheet">
    <link href="${baseUrl!}/static/bootstrap/css/flat-ui.css?v=20150604" rel="stylesheet">
    <script type="text/javascript" src="${baseUrl!}/static/bootstrap/js/jquery.min.js?v=20150604"></script>
    <script type="text/javascript" src="${baseUrl!}/static/bootstrap/js/bootstrap.min.js?v=20150604"></script>
    <script type="text/javascript" src="${baseUrl!}/static/bootstrap/js/bootstrap-paginator.js?v=20150604"></script>
    <script type="text/javascript" src="${baseUrl!}/static/bootstrap/js/bootstrap-hover-dropdown.min.js"></script>

    <script type="text/javascript" src="${baseUrl!}/static/js/jfinalbbs.js?v=20150604"></script>
    <style>
        #backtotop {
            width: 24px;
            color: gray;
            padding: 12px 0 12px 5px;
            display: none;
            position: fixed;
            cursor: pointer;
            text-align: center;
            z-index: 20;
            background-color: #fff;
            display: none;
            top: 502px;
            right: 0px;
        }
    </style>
</head>
<body style="background-color: #e1e1e1;">
<#--页面头部信息-->
<#include "/ftl/front/common/header.html"/>
<@header page_tab=page_tab/>
<div class="container">
    <div class="row">
        <div class="col-md-9">
            <#nested>
        </div>
        <div class="col-md-3">
            <div id="jf_sidebar">
                <#include "/ftl/front/common/sidebar.html"/>
                <@sidebar sidebar_user_info=sidebar_user_info sidebar_topic_user=sidebar_topic_user sidebar_checkin=sidebar_checkin sidebar_create=sidebar_create sidebar_scoretop=sidebar_scoretop sidebar_md_help=sidebar_md_help sidebar_create_info=sidebar_create_info sidebar_friendlylinks=sidebar_friendlylinks sidebar_about=sidebar_about />
            </div>
        </div>
    </div>
</div>
<div id="backtotop">回到顶部</div>
<script type="text/javascript">
    $(document).ready(function() {
        var n = $("#backtotop");
        n.click(function() {
            return $("html,body").animate({
                scrollTop: 0
            });
        });
        $(window).scroll(function() {
            var t = $(window).scrollTop();
            t > 200 ? n.fadeIn() : n.fadeOut()
        });
        <#if session.user??>
        // 定时取未读消息
            setTimeout(function(){
                $.ajax({
                    url : "${baseUrl!}/notification/countnotread",
                    async : false,
                    cache : false,
                    type : 'post',
                    dataType : "json",
                    data : {},
                    success : function(data) {
                        if(data.code == '200') {
                            if(data.detail > 0) {
                                $("#badge").html(data.detail);
                            }
                        }
                    }
                });
            }, 1000);
        </#if>
    });
</script>
<#--footer-->
<#include "/ftl/front/common/footer.html"/>
<@footer/>
</body>
</html>
</#macro>